import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: 'product',
  name: 'product',
  component: RouterView,
  meta: { title: '产品管理' },
  children: [{
    path: 'product_list',
    name: 'product_list',
    component: () => import('@/views/product/list/index.vue'),
    meta: { title: '商品管理' }
  }, {
    path: 'product_classify',
    name: 'product_classify',
    component: () => import('@/views/product/classify/index.vue'),
    meta: { title: '商品分类' }
  }, {
    path: 'product_attr',
    name: 'product_attr',
    component: () => import('@/views/product/attr/index.vue'),
    meta: { title: '商品规格' }
  }, {
    path: 'product_comment',
    name: 'product_comment',
    component: () => import('@/views/product/comment/index.vue'),
    meta: { title: '商品评论' }
  }]
}

export default routes
